package cn.bxshey.resourceSharing.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Essay)表实体类
 *
 * @author makejava
 * @since 2023-12-16 17:54:45
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("essay")
public class Essay {
    @TableId
        
    private Long id;

    //文章内容
    private String content;
    //浏览
    private Long visit;
    //赞
    private Long support;
    //发布时间
    private Date time;
    //封面
    private String cover;
    //文章标题
    private String title;
    //文章类型
    private String kind;
    //评论
    @TableField(exist = false)
    private List<Comments> comments;

}
